<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/10
  Time: 15:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册界面</title>
</head>
<body>
<form action="/register" method="post">
    <p>${error}</p>
    <select name="roleName">
        <c:forEach items="${roleName}" var="role">
            <option value="${role.id}">${role.roleName}</option>
        </c:forEach>
    </select>
    注册账号<input type="text" name="username" required>
    注册密码<input type="password" name="password" required>
    <input type="submit">
</form>
</body>
</html>
